﻿namespace Agile.Service.Admin.Model.ViewModel.Content;

public class InsertContentAdvRequest
{
    ///<summary>广告标题</summary>
    [Required]
    public string AdvTitle { get; set; }

    ///<summary>广告描述</summary>
    public string AdvDesc { get; set; }

    ///<summary>排序</summary>
    public int Sort { get; set; }

    ///<summary>是否发布</summary>
    public bool IsPublish { get; set; }

    ///<summary>生效日期</summary 
    public DateTime EffectiveTime { get; set; }

    ///<summary>失效日期</summary>
    public DateTime FailureTime { get; set; }

    ///<summary>跳转地址</summary>
    public string JumpUrl { get; set; }

    ///<summary>图片地址</summary>
    public string ImageUrl { get; set; }

    ///<summary>备注</summary>
    public string Remark { get; set; }
}

public class UpdateContentAdvRequest : InsertContentAdvRequest
{
    ///<summary>广告ID</summary> 
    public long AdvID { get; set; }
}

public class QueryPageContentAdvRequest : PageRequestModel
{
    ///<summary>广告标题</summary> 
    public string AdvTitle { get; set; } 

    ///<summary>生效日期</summary> 
    public DateTime EffectiveTime { get; set; }

    ///<summary>失效日期</summary>
    public DateTime FailureTime { get; set; }

    ///<summary>是否发布</summary>
    public bool? IsPublish { get; set; }
}